package com.s4j.struts.biz.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name="biz_li_appr")
public class BizLiAppr {
	
	private Long apprId;
	
	private PatientDoc patient;
	
	private Integer hbflag;
	
	private String qibing_day;  //起病时间
	
	private String quezhen_day;  //确诊时间
	
	private String quezhen_hospital;  //确诊医院
	
	private String zhenduan_standard;  //诊断标准
	
	private Integer quezhen_age;   //确证年龄
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getApprId() {
		return apprId;
	}

	public void setApprId(Long apprId) {
		this.apprId = apprId;
	}
	
	@OneToOne  
    @JoinColumn(name="patientId",insertable=true,unique=true)
	public PatientDoc getPatient() {
		return patient;
	}

	public void setPatient(PatientDoc patient) {
		this.patient = patient;
	}

	public Integer getHbflag() {
		return hbflag;
	}

	public void setHbflag(Integer hbflag) {
		this.hbflag = hbflag;
	}

	public String getQibing_day() {
		return qibing_day;
	}

	public void setQibing_day(String qibing_day) {
		this.qibing_day = qibing_day;
	}

	public String getQuezhen_day() {
		return quezhen_day;
	}

	public void setQuezhen_day(String quezhen_day) {
		this.quezhen_day = quezhen_day;
	}

	public String getQuezhen_hospital() {
		return quezhen_hospital;
	}

	public void setQuezhen_hospital(String quezhen_hospital) {
		this.quezhen_hospital = quezhen_hospital;
	}

	public String getZhenduan_standard() {
		return zhenduan_standard;
	}

	public void setZhenduan_standard(String zhenduan_standard) {
		this.zhenduan_standard = zhenduan_standard;
	}

	public Integer getQuezhen_age() {
		return quezhen_age;
	}

	public void setQuezhen_age(Integer quezhen_age) {
		this.quezhen_age = quezhen_age;
	}
	
	

}
